﻿using KingRoad.EPM.CompletionMaterialsEntity.Model;
using Unis.Framework.RuleBase.Common;


namespace KingRoad.EPM.CompletionMaterialsDAL.ScmAttachsfilesService
{    
    /// <summary> 
    /// 文件生成时间 2017/8/7 20:34:15
    /// </summary> 
    public class ScmAttachsfilesService :BaseService<ScmAttachsfilesInfo>, IScmAttachsfilesService
    {
        /// <summary>
        /// 根据文件外键和文件名删除
        /// </summary>
        /// <param name="pkId"></param>
        /// <param name="fileName"></param>
        /// <returns></returns>
        public bool DeleteObjsByPkIdAndFileName(string pkId, string fileName)
        {
           var ret=  DatabaseExcuteByXmlHelper.NewInstance.ExecuteNonQuery("ScmAttachsfiles", "DeleteObjsByPkIdAndFileName",
                pkId, fileName);
            return ret > 0;
        }
    }

}
